<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "contral_set".
 *
 * @property integer $id
 * @property integer $status
 * @property string $unique_mark
 * @property string $name
 * @property string $value
 * @property string $description
 * @property string $add_date
 * @property string $update_time
 * @property string $remark
 * @property string $parameter
 */
class ContralSet extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'contral_set';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status'], 'required'],
            [['status'], 'integer'],
            [['add_date', 'update_time'], 'safe'],
            [['unique_mark', 'remark', 'parameter'], 'string', 'max' => 100],
            [['name'], 'string', 'max' => 20],
            [['value', 'description'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'status' => 'Status',
            'unique_mark' => 'Unique Mark',
            'name' => 'Name',
            'value' => 'Value',
            'description' => 'Description',
            'add_date' => 'Add Date',
            'update_time' => 'Update Time',
            'remark' => 'Remark',
            'parameter' => 'Parameter',
        ];
    }
}
